package com.taoshen.entity;

import lombok.*;
import lombok.experimental.Accessors;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

/**
 * @Description
 * @Author Zhang Litao
 * @Date 2021/11/10 14:25
 */
@Setter
@Getter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Document("t_human")
public class Human {
    @Indexed(sparse = true)
    private String name;

    private List<String> hobby;
}
